package Formularios;

import javax.swing.JFrame;

import java.awt.Color;

import javax.swing.JLabel;

import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.SwingConstants;

import javax.swing.JSeparator;
import javax.swing.JButton;

public class Principal extends Pesquisar {
	static JFrame telaPrincipal = new JFrame("INFOFUN");
	/**
	 * @wbp.parser.entryPoint
	 */
	public void executar(){
	telaPrincipal.getContentPane().setBackground(new Color(240, 230, 140));
	telaPrincipal.setBackground(new Color(240, 230, 140));
	telaPrincipal.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	telaPrincipal.setSize(604, 485);
	telaPrincipal.getContentPane().setLayout(null);
	
	JLabel lblInfofun = new JLabel("INFOFUN");
	lblInfofun.setHorizontalAlignment(SwingConstants.CENTER);
	lblInfofun.setFont(new Font("Arial Black", Font.PLAIN, 45));
	lblInfofun.setBounds(20, 11, 558, 57);
	telaPrincipal.getContentPane().add(lblInfofun);
	
	JLabel lblSistemaDeControle = new JLabel("Sistema de Controle de Funcion\u00E1rios");
	lblSistemaDeControle.setForeground(new Color(0, 0, 128));
	lblSistemaDeControle.setHorizontalAlignment(SwingConstants.CENTER);
	lblSistemaDeControle.setBounds(20, 87, 558, 14);
	telaPrincipal.getContentPane().add(lblSistemaDeControle);
	
	JSeparator separator = new JSeparator();
	separator.setBounds(20, 112, 558, 2);
	telaPrincipal.getContentPane().add(separator);
	
	JSeparator separator_1 = new JSeparator();
	separator_1.setBounds(20, 357, 558, 2);
	telaPrincipal.getContentPane().add(separator_1);
	
	JButton btnCadastro = new JButton("Cadastro");
	btnCadastro.setBounds(250, 162, 103, 23);
	telaPrincipal.getContentPane().add(btnCadastro);
	btnCadastro.addActionListener(
			new ActionListener(){
			public void actionPerformed(ActionEvent e){
			form();
			
			
			}
			}
			);
	
	JButton btnPesquisar = new JButton("Pesquisar");
	btnPesquisar.setBounds(250, 233, 103, 23);
	telaPrincipal.getContentPane().add(btnPesquisar);
	btnPesquisar.addActionListener(
			new ActionListener(){
			public void actionPerformed(ActionEvent e){
			formula();
			
			
			}
			}
			);
	telaPrincipal.setVisible(true);
	}
}
